public class Student {
    //id name age address
    private String id;
    private String name;
    private int age;
    private String address;

    public void show(){
        /*
        System.out.print("学生的id:"+this.id+"\t\t");
        System.out.print("学生的姓名:"+this.name+"\t\t");
        System.out.print("学生的年龄:"+this.age+"\t\t");
        System.out.print("学生的住址:"+this.address+"\t\t");
        */
        //由于打印了表头信息
        //故以上的代码要进行改写
        System.out.print(this.id+"\t\t");
        System.out.print(this.name+"\t\t");
        System.out.print(this.age+"\t\t");
        System.out.print(this.address+"\t\t");
        System.out.println();
    }

    public Student() {
    }

    public Student(String id, String name, int age, String address) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.address = address;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
